package com.shensi.api.pay.client;

import com.shensi.common.core.constant.CloudConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Api(tags = "车队卡信息管理")
@FeignClient(name = CloudConstant.PAY_SERVER, path = "/fleetCard")
public interface FleetCardClient {


    @GetMapping(value = "/enterpriseId/{enterpriseId}/keyword/{keyword}")
    @ApiOperation(value = "根据关键词获取车队卡信息列表", httpMethod = "GET", notes = "根据关键词获取车队卡信息列表")
    public String getFleetCardList(@PathVariable("enterpriseId") Long enterpriseId, @PathVariable("keyword") String keyword);

    @GetMapping(value = "/{cardNumber}")
    @ApiOperation(value = "根据主卡号获取车队卡信息", httpMethod = "GET", notes = "根据主卡号获取车队卡信息")
    public String getFleetCard(@PathVariable("cardNumber") String cardNumber);
}
